//
//  CustomTabBarController.m
//  edsForCustom
//
//  Created by ZLL on 16/5/11.
//  Copyright © 2016年 ios.wenlong. All rights reserved.
//

#import "CustomTabBarController.h"

@implementation CustomTabBarController


- (void)customIcons {
    NSArray *imageArr = @[@"home_loty_normal",@"home_notice_normal",@"home_find_normal",@"home_myloty_normal"];
    NSArray *imageSelectedArr = @[@"home_loty_selected",@"home_notice_selected",@"home_find_selected",   @"home_myloty_selected"];
    
    UITabBar *tabBar = self.tabBar;
    int i = 0;
    for (UITabBarItem *item in tabBar.items)
    {
        [item setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                                      NavigationBarColor, NSForegroundColorAttributeName, nil]
                            forState:UIControlStateSelected];
        item.selectedImage = [[UIImage imageNamed:imageSelectedArr[i]] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
        item.image = [[UIImage imageNamed:imageArr[i]] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
        i++;
    }
}
@end
